<!-- RSS Feed -->
<link href="rss.php" title="{$sitename} - {$smarty.const.LA_RSS_FEED}" rel="alternate" id="list1" type="application/rss+xml" />

<script type="text/javascript" src="http://{$url}/javascript/common.js"></script>

<script type="text/javascript" src="tools/lightbox/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="tools/lightbox/js/lightbox.js"></script-->

<link rel="stylesheet" href="/style/jquery-ui-1.7.custom.css" type="text/css" media="screen" />
<script type="text/javascript" src="/javascript/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="/javascript/jquery/jquery-ui-1.7.custom.min.js"></script>


<!-- Editor  -->
{if $html_editor}
	{include file=editor.tpl}
{/if}

<!-- Tree -->
<script type="text/javascript" src="http://{$url}/tools/dtree/dtree.js"></script>
<link rel="StyleSheet" href="http://{$url}/tools/dtree/dtree.css" type="text/css" />

{php}
global $xajax,$lUseAjax;
if ($lUseAjax)
	$xajax->printJavascript("tools/xajax");
{/php}

{if $googlemap}
{literal}
<script src="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key={/literal}{$googlemap}{literal}" type="text/javascript"></script>
    <script type="text/javascript">
    //<![CDATA[

    var map = null;
    var geocoder = null;

    function load() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        geocoder = new GClientGeocoder();
      }
    }

    function showAddress(address) {
    	geocoder = new GClientGeocoder();
      if (geocoder) {
      	geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point, 13);
              var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(address);
            }
          }
        );
      }
    }
    //]]>
    </script>{/literal}
{/if}
